#!/bin/sh
version="v1.0"
path="main"
flags="-X '$path.Version=$version' -X '$path.GoVersion=$(go version)' -X '$path.BuildTime=`date +"%Y-%m-%d %H:%m:%S"`'"
cd dataServer;go build -ldflags "$flags" -o dataServer;cd ../
cd apiServer;go build -ldflags "$flags" -o apiServer;cd ../

#cp -ar dataServer/dataServer /usr/bin/
#cp -ar apiServer/apiServer /usr/bin/
